import unittest
from shubiaojp import MyTestCase
# TestSuite 测试套件
# suite=unittest.TestSuite()
# suite.addTest(MyTestCase('test_search'))
# suite.addTest(MyTestCase('test_search_01'))
# suite=unittest.TestLoader().loadTestsFromTestCase(MyTestCase)
# runner=unittest.TextTestRunner()
# runner.run(suite)
suite=unittest.defaultTestLoader.discover(start_dir='./',pattern='shubiaojp.py')
# TestRunner 测试执行
runner=unittest.TextTestRunner()
runner.run(suite)
